package com.kuang.blog.controller;


import com.kuang.blog.entity.User;
import com.kuang.blog.service.UserService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 开发者：HaoZhong
 * @since 2022-09-27
 */
@RestController
@RequestMapping("/user")
public class UserController {
    @Resource
    private UserService userService;
    @GetMapping("/getOne")
    public User getOne(){
        return userService.getById(1);
    }

}
